<template>
  <div>
    <el-button type="primary" size="mini">发布</el-button>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="knowtitle" label="知识标题"> </el-table-column>
      <el-table-column prop="knowcontent" label="发布的知识内容">
      </el-table-column>
      <el-table-column prop="knowcateid" label="知识类别"> </el-table-column>
      <el-table-column prop="states" label="状态"> </el-table-column>
      <el-table-column prop="archFiles" label="知识附件">
        <template>
          <el-link type="primary">水利工程附件</el-link>
        </template>
      </el-table-column>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button size="mini" @click="handleEdit(scope.$index, scope.row)"
            >编辑</el-button
          >
          <el-button
            size="mini"
            type="danger"
            @click="handleDelete(scope.$index, scope.row)"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>
    <div class="pagination">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page.sync="currentPage2"
        :page-sizes="[10, 20, 30, 40]"
        :page-size="10"
        layout="sizes, prev, pager, next"
        :total="1"
      >
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          knowid: "",
          knowtitle: "水库-大坝",
          knowcontent: "知识内容",
          knowcateid: "水利工程-大坝建设",
          usrsId: "",
          states: "形式审查未通过",
          archFiles: "",
        },
      ],
    };
  },
};
</script>

<style scoped>
.pagination {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
</style>